//get_post.h
 
#ifndef _HTTP_CLIENT_H_
#define _HTTP_CLIENT_H_
 
#ifdef __cplusplus
extern "C"
{
#endif

#define MY_HTTP_DEFAULT_PORT 80

static int http_tcpclient_create(const char *host, int port);
static void http_tcpclient_close(int socket);
static int http_parse_url(const char *url, char *host, char *file, int *port);
static int http_tcpclient_recv(int socket, char *lpbuff);
static int http_tcpclient_send(int socket, char *buff, int size);
static char *http_parse_result(const char*lpbuf);
char *http_post(const char *url, const char *post_str,const char *content_type);
char *http_get(const char *url,const char *content_type);
 
 
 
 
 
#ifdef __cplusplus
}
#endif
 
 
 
#endif
 
